package com.gszy.auth.controller;

import com.gszy.auth.mvc.Controller;
import com.gszy.auth.mvc.ModelAndView;
import com.gszy.auth.mvc.RequestMapping;
import com.gszy.auth.mvc.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @author MeUChT
 */
@Controller("/test1")
public class TestController {

    @RequestMapping("/test1.do")
    public ModelAndView test1(
            @RequestParam("username") String username,
            @RequestParam(value = "password") String password
    ){

        return new ModelAndView()
                .setPath("/index.jsp")
                .add("username",username)
                .add("password",password);

    }

}
